#ifndef HTTPSERVER_H
#define HTTPSERVER_H

#include <QtNetwork/QTcpServer>
#include <QtNetwork/QTcpSocket>
#include <QRegExp>
#include <QStringList>
#include <QFile>
#include <QFileInfo>
#include <QSettings>
#include <QDir>
#include "TDL.h"

class HttpServer : public QTcpServer
{
    Q_OBJECT
    public:
        HttpServer(QObject *parent = 0);
    private slots:
        void newConnection();
        void readyRead();
        void disconnected();
        void respond(const QString &data, QTcpSocket *socket);
    signals:
        void message(QString msg);
};

#endif // HTTPSERVER_H
